package com.xgp.company.annotaion;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

//作用在字段上
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface MyField {

    String name() default "";

    //长度
    int len() default 3;

    //参数限制，默认为允许为null
    Plan plan() default Plan.NULL;

    //备注
    String Comment() default "";

}
